"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const {
    router,
    controller,
    config: { apiPrefix },
  } = app;
  router.get("/", controller.home.index);

  router.get("/user", controller.user.list);
  router.post("/user", controller.user.createUser);
  router.delete("/user", controller.user.deleteUser);
};
